* You may freely copy, distribute, and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to its
* fitness for any particular use.
*
* Written by: Mai Nguyen, NeXT Developer Support
*
*
*/
#import "TableViewController.h"
#define INSTALL_MODEL NXLocalizedString("Please install SybaseDemo.dbmodela or OracleDemo.dbmodela in your project.", NULL, "Notify user that the ascii model files must be installed in his project directory.")
/* Comment this line out if you want to run an Oracle version */
#define SYBASE_DEMO 1
@implementation TableViewController
/*
* Miscellaneous initialization tasks: connect to database, initialize
* tableview, set up dbModule.
*/
-appDidInit:sender
{
NXRect viewFrame;
#ifdef SYBASE_DEMO
/* Notify the user if the database can't be found */
if (!(dbDatabase = [DBDatabase findDatabaseNamed:"SybaseDemo"